/**
 *
 */
package pe.gob.mef.logistica.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;


public class LogoutController extends MultiActionController {
    
    private String logout;
    
    public ModelAndView logout(HttpServletRequest request, HttpServletResponse response) {
        System.out.println("Performing logout....");
        request.getSession().invalidate();
        return new ModelAndView(logout);
    }
    
    public String getLogout() {
        return logout;
    }
    
    public void setLogout(String logout) {
        this.logout = logout;
    }
    
}
